package com.hgw.Demo03_AbstractFactory.abstract_factory;

/**
 * Data time:2021/12/12 13:12
 * StudentID:2019112118
 * Author:hgw
 * Description: 测试类
 */
public class Client {

    public static void main(String[] args) {
        DessertFactory factory;
        Coffee coffee;
        Dessert dessert;

        factory = new AmericanDessertFactory();
        coffee = factory.createCoffee();
        dessert = factory.createDessert();

        System.out.println(coffee.getName());
        System.out.println(dessert.getName());
    }
}
